package com.ycz.pattern.behaviour.commandpattern;

/**
 * @author yancz
 * @ClassName SellStock
 * @description: TODO
 * @date 2023-11-28 17:31:10a
 * @version: 1.0
 */
public class SellStock implements Order {

    private Stock stock;

    public SellStock(Stock stock) {
        this.stock = stock;
    }

    @Override
    public void execute() {
        stock.sell();
    }
}
